
var app = getApp()
var ConstantData = require('../common/constant_data.js')

function getScanTimeoutTip(mac, callback) {

  app.executeRequest(function (header) {
    wx.request({
      url: ConstantData.CONSTATNT_DATA.BASE_URL + '/leaseTip/scanTimeout',
      data:{
         mac: mac       
      },
      method: 'post',
      header:header,
      success:(res)=>{
        console.log(res,'resresres')
        let data = res.data
        if(data && data.result == 0 && callback) {
            callback(data.data)
        }
      }
    })
  })

}

module.exports = {
  getScanTimeoutTip: getScanTimeoutTip,
}